/*
 * =====================================================================================
 * Copyright (C) 2023 Ingenic Semiconductor Co.,Ltd
 * All Rights Reserved
 *
 * Filename     : message.h
 * Author       : Keven <keven.ywhan@ingenic.com>
 * Created      : 2024/06/20 18:05
 * Description  :
 *
 * =====================================================================================
 */

#ifndef __MESSAGE_H__
#define __MESSAGE_H__

#include "FreeRTOS.h"
#include "queue.h"

void *init_mesg_queue(uint32_t msg_num, uint32_t msg_size);
int32_t send_msg(void *msg_handle, void* msg_data);
int32_t send_msg_isr(void *msg_handle, void* msg_data);
int32_t wait_msg(void *msg_handle, void* msg_data);
int32_t wait_msg_timeout(void *msg_handle, void* msg_data, uint32_t timeout);

#endif /* __MESSAGE_H__ */

